Skip to content

Update compute_dict_like to get all columns #58452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

undermyumbrella1
Copy link
Contributor

@undermyumbrella1 undermyumbrella1 commented Apr 27, 2024

@undermyumbrella1 undermyumbrella1 marked this pull request as draft April 27, 2024 15:29
@undermyumbrella1 undermyumbrella1 force-pushed the fix/grouby_agg_dict_input_dup_columns branch from 75f593e to e8f3172 Compare April 28, 2024 14:36
@undermyumbrella1 undermyumbrella1 force-pushed the fix/grouby_agg_dict_input_dup_columns branch from b2ee3b4 to 79a8ea6 Compare April 28, 2024 15:36
@undermyumbrella1 undermyumbrella1 marked this pull request as ready for review April 28, 2024 16:26
@mroeschke mroeschke requested a review from rhshadrach April 29, 2024 17:31
@undermyumbrella1 undermyumbrella1 force-pushed the fix/grouby_agg_dict_input_dup_columns branch from c0ddcdd to 31b05af Compare May 2, 2024 09:15
@undermyumbrella1
Copy link
Contributor Author

Thank you for the review, I have added comments as per the review.

@rhshadrach
Copy link
Member

Thanks for the patience here @undermyumbrella1 - I should be able to get to this by Friday.

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic in the for loop that I was trying to change looks good. In general it'd be best if we didn't have to split up a DataFrame into Series for performance, but to flexibly handle all the different cases we need to it doesn't seem possible to me.

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rhshadrach
Copy link
Member

@undermyumbrella1 - looks like some unrelated failures, can you merge main to make sure.

@rhshadrach rhshadrach added Bug Apply Apply, Aggregate, Transform, Map labels May 15, 2024
@mroeschke mroeschke merged commit 4526ea7 into pandas-dev:main Jun 4, 2024
47 checks passed
@mroeschke mroeschke added this to the 3.0 milestone Jun 4, 2024
@mroeschke
Copy link
Member

Thanks @undermyumbrella1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Bug Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: groupby.agg fails when input has duplicate columns and dict input
3 participants